Hello,
I'm trying to run the dotnet homing example (see below) but nothing is happening on my step/dir stepper system (it is open loop - no encoder). The RunAxisExample() works fine.
My limit switch is on IO0 and works fine (when I press the switch, a checkmark appears on the KMotion IO screen). Then, I exit KMotion and run the RunHomingRoutineExample() and nothing happens (no motion of any kind).
static void RunHomingRoutineExample()
{
var axis = _Controller.GetAxis(0, "X");
axis.Acceleration = 1000000;
axis.TuningParams.Jerk = 1000000;
axis.Velocity = 30000;
axis.Enable();
axis.CPU = 100;
axis.HomingParams.SourceType = HOMING_ROUTINE_SOURCE_TYPE.AUTO;
axis.HomingParams.HomeFastVel = 10000;
axis.HomingParams.HomeSlowVel = 10;
axis.HomingParams.HomeLimitBit = 0;
axis.HomingParams.HomeLimitState = true;
axis.HomingParams.RepeatHomeAtSlowerRate = true;
axis.HomingParams.SequencePriority = 1;
axis.DoHome();
}
Does anyone have any suggestions?
Thanks in advance!
Neville